package com.alinesno.cloud.base.storage;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

import com.alinesno.cloud.common.core.auto.EnableCore;
import com.alinesno.cloud.common.web.basic.auth.enable.EnableHttpBasicAuth;
import com.alinesno.cloud.common.web.basic.auth.enable.ScanPackage;

/**
 * 启动入口
 * 
 * @author WeiXiaoJin
 * @since 2018-12-16 18:12:212
 */
//@EnableAsync // 开启异步任务
//@EnableCore
//@SpringBootApplication  // 启动入口(必须)
@EnableCore
@EnableJpaAuditing // jpa注解支持
@EnableHttpBasicAuth
@EntityScan({ScanPackage.BASIC_BACKENTITY , "com.alinesno.cloud.base.storage.entity"})
@EnableJpaRepositories({ScanPackage.BASIC_BACKREPOSITORY , "com.alinesno.cloud.base.storage.repository"}) 
@SpringBootApplication(scanBasePackages = {"com.alinesno.cloud.base.storage"})
public class BaseStorageApplication {

	public static void main(String[] args) {
		SpringApplication.run(BaseStorageApplication.class, args);
	}
}
